package com.freecloud.whispered.auth.feign;

import com.freecloud.whispered.auth.entity.SysUserEntity;
import com.freecloud.whispered.auth.service.SysUserCall;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import static com.freecloud.framework.constant.Constant.CLOUD_APP_NAME_AUTH;

/**
 * @Author: maomao
 * @Date: 2019-09-02 17:37
 */
@FeignClient(value = CLOUD_APP_NAME_AUTH)
public interface SysUserFeign extends SysUserCall {

    @Override
    @PostMapping("/feign/sys/user/queryUserById")
    SysUserEntity queryUserById(@RequestParam("userid") Long userid);
}
